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.

1. Open the script

Click File > Open in the IDE

open

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.

script

Settings

WIFI

find the wifi setting at line 10 ~ 11.

wifi

*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)

wifi

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 ""

Data Server

find the data server setting at line 14 ~ 17.

data server

We'll talk about that later, for now, just leave it as it is.

Discord

find the Discord setting at line 20 ~ 21.

discord

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.

How to get webhook link

  1. Head to the channel you want the warning and the report to be.
discord
  1. Click the gear icon and click "Integrations".
discord
  1. Click "Create Webhook" and click on the "Spidey Bot".
discord
  1. Click "Copy Webhook URL" on the bottom.
discord
  1. Paste the link into *webhook. The way of filling is mentioned above.

Intensity Setting

find the intensity setting at line 27 ~ 30.

intensity

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.

intensity

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

intensity

Important

There should only be one line without "// ", or QuakeCord might work unexpectedly.

The "don't touch"s

find the don't touch setting at line 35 ~ 40.

don't touch

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.


 Previous 

 Next 

⚠️ **GitHub.com Fallback** ⚠️