1
- # farmos-nws
1
+ # farmosnws
2
2
Automated importing of National Weather Service (NWS) data into FarmOS.
3
3
4
- For more information about FarmOS, please visit the
5
- [ FarmOS] ( http://www.farmos.org ) website.
6
-
7
- For more information about the National Weather Service (NWS), please visit the
8
- [ NWS] ( http://www.weather.gov ) website.
9
-
10
4
## Purpose
11
5
The purpose of this project is to allow FarmOS to use data from the National
12
6
Weather Service to allow it to make better decisions as well as to log
@@ -25,7 +19,13 @@ investment.
25
19
* PHP
26
20
* Crontab or other task scheduler capable of running shell scripts
27
21
28
- ## Setup
22
+ ## Setup
23
+
24
+ ### Clone the Repository
25
+ Clone this repository by running the command below
26
+ ```
27
+ git clone https://github.com/bitsecondal/farmosnws.git
28
+ ```
29
29
30
30
### Create Configuration File
31
31
Make a copy of the get_weather_config_ex.sh file. Update the variables located in the configuration
@@ -53,7 +53,9 @@ steps below. The National Weather Service updates the data hourly.
53
53
#### Linux/Ubuntu with Crontab
54
54
Update the paths mentioned to the location of your script and the location of your configuration
55
55
file respectively. If you want to log the output of the script, also update the log location.
56
+ ``` shell
56
57
24 * * * * (/path/to/drupal/sites/all/modules/farmosnws/get_weather.sh /path/to/drupal/sites/all/modules/farmosnws/config.sh) >> /var/log/get_weather.log 2>&1
58
+ ```
57
59
58
60
#### Windows with Task Scheduler
59
61
You will need to install software that is capable of downloading files in Windows. Powershell
@@ -63,8 +65,13 @@ for the command to run, enter the path to the script in your Drupal directory an
63
65
file as an argument in the script.
64
66
65
67
## Code Updates
66
- To get the latest version of the code, pull the latest release from the
67
- [ FarmOS NWS GitHub Page] ( https://github.com/bitsecondal/farmosnws/issues ) .
68
+ To get the latest version of this code, pull the latest release from the
69
+ [ FarmOS NWS GitHub Page] ( https://github.com/bitsecondal/farmosnws ) .
70
+
71
+ Alternatively you can get the latest code by going to the directory that contains the code and running the command below:
72
+ ```
73
+ git pull origin master
74
+ ```
68
75
69
76
## Author
70
77
Kenny Robinson, Bit Second Tech (www.bitsecondtech.com )
@@ -78,3 +85,9 @@ as much detail as possible so that the issue can be replicated.
78
85
79
86
## License
80
87
Project is available under the MIT License. See LICENSE for more information.
88
+
89
+ ## Additional Information
90
+ For more information about FarmOS, please visit the [ FarmOS] ( http://www.farmos.org ) website.
91
+
92
+ For more information about the National Weather Service (NWS), please visit the
93
+ [ NWS] ( http://www.weather.gov ) website.
0 commit comments