6. Complete Settings - KnowScratcher/QuakeCord GitHub Wiki
In this session, we're going to walk you through the settings. You don't have to panic if you have ever programed before. I will give you very detailed information about what to put in.
Click File > Open in the IDE

Find the script in (your folder) > src > firmware_public > firmware_public.ino
. Double click to open it in the IDE.
And your screen should be like this.

find the wifi setting at line 10 ~ 11.

*ssid
: Wifi ssid.
*password
: Wifi password.
Enter your wifi id (name) between the first ""
and password between the second ""
.
For example (the id is myWifi
and password VeryStrongPassword
)

Important
Things you should not do:
- Copy the example value (unless your wifi name and password are same as the example)
- Put the name or the password outside the
""
(like ""myWifi or VeryStrongPassword"") - Delete the
""
- Change other thing other than things inside
""
find the data server setting at line 14 ~ 17.

We'll talk about that later, for now, just leave it as it is.
find the Discord setting at line 20 ~ 21.

enableDiscord
: Whether you want to enable sending warning and report to Discord.
*webhook
: The webhook link to the Discord channel. (Only support 1 channel right now.)
enableDiscord
only has 2 options, true
for yes and false
for no. Note that you don't have to and don't put ""
around the value.
Fill the ""
for *webhook
like you did for wifi.
- Head to the channel you want the warning and the report to be.

- Click the gear icon and click "Integrations".

- Click "Create Webhook" and click on the "Spidey Bot".

- Click "Copy Webhook URL" on the bottom.

- Paste the link into
*webhook
. The way of filling is mentioned above.
find the intensity setting at line 27 ~ 30.

We support 4 types of intensity
- MMI: for global use. (Mercalli intensity scale)
- CWASIS : for Taiwan region. (Taiwan seismic intensity scale)
- JMA: for Japan region. (Japan Meteorological Agency seismic intensity scale)
- CSIS: for China region. (China seismic intensity scale)
Note
PEIS (PHIVOLCS earthquake intensity scale) is not supported.
Caution
For CWASIS, we use the old scale (only consider PGA), not the new scale. So the part of intensity that needs to use PGV to calculate will be marked with a "*" at the end of the intensity. (Eg. 5強*)
To change the setting, first make sure all line has a "// " at the beginning, if not, add it.

Next, remove the "// " on the line of the intensity scale you want to use.

Important
There should only be one line without "// ", or QuakeCord might work unexpectedly.
find the don't touch setting at line 35 ~ 40.

Unless You really know what you're doing, please don't touch this part.
Note
1gal = 1cm/s^2 = 0.01m/s^2
1g = 9.8 m/s^2 = 980cm/s^2 = 980gal
dataRatio
: The ratio of gal:data, just a unit conversion constant from experiment.
threshold
: The threshold for earthquake (in gal)
INTERRUPT_PIN
: Define the interruption pin
LED_BUILTIN
: The LED pin, you really shouldn't touch this.