-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added instructions for API integration
- Loading branch information
1 parent
6a13a7d
commit 1f1b7e8
Showing
2 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Weather Underground API integration | ||
=================================== | ||
|
||
1. Run the SQL statement again. This is written in such a way that it will only add whatever you don't have. | ||
|
||
`mysql -u root -p weather < CREATE-SP.sql` | ||
|
||
2. Add your own values to the settings table. | ||
|
||
``` | ||
mysql -u root -p weather -e "update SETTINGS set value='YOUR-STATION-ID' where name='WUNDERGROUND_ID'" | ||
mysql -u root -p weather -e "update SETTINGS set value='YOUR-STATION-PASSWORD' where name='WUNDERGROUND_PASSWORD'" | ||
``` | ||
3. Open CRONTAB to configure a recurring task. | ||
`crontab -e` | ||
4. Set up a CRON job to automatically send data to Weather Underground every 10 minutes. (Change the URL to match your environment.) | ||
`*/10 * * * * curl http://localhost/dashboard/wunderground-api.php` | ||
5. Press `Ctrl O` then `Enter` to save and `Ctrl X` to quit nano. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters