Help on adding data to WeeWx

56 views
Skip to first unread message

dens...@yahoo.com

unread,
Aug 22, 2025, 4:46:42 PMAug 22
to weewx-user
I could use some help, a step by step tutorial, on how to add data (timedate,  decimal value and unit) that is collected from an internet NOAA site every few minutes in my index.html file. Currently the data is just displayed locally. I'd like to save it and display the history, locally, in a WeeWX graph.
The more I read on customization the less i understand. Some plain language would be appreciated.
Thanks
Den

vince

unread,
Aug 22, 2025, 5:57:50 PMAug 22
to weewx-user
What data, from where,  and how are you getting it currently ?

dens...@yahoo.com

unread,
Aug 22, 2025, 7:59:40 PMAug 22
to weewx-user

Hi,
The download is an RSS (XML) file via 'simplexml_load_file('...') from the NOAA Buoy site that I am parsing most of the data into an array then displaying that information on a local / private server running WeeWX with a custom web page along with lots of other information from the web and a Davis Console. Currently only the Davis data are saved via WeeWX
The information I wish to save is the Buoy name (10 chars, date stamp (date and time) and wave height (NN.DD). All parsed into an array and then displayed on the web page index.php created from index.php.tmpl. This will be for 2 buoys and the data is collected approximately every 10 minutes. 
I'd like to archive this information and possibly display both data sets on WeeWX charts. 
I'm hoping this isn't too complex. if it is it is no biggie to just display the data the way I am doing. Being on the east coast it is good to have an idea of what is going on off shore.
Thanks for the reply,
Den

vince

unread,
Aug 22, 2025, 8:44:46 PMAug 22
to weewx-user
Big MQTT fan here, so I would parse the XML and post a MQTT payload to a local mosquitto broker, then MQTTSubscribe that in weewx to get it into weewx. Uncertain how you'd map the data elements into the weewx schema though.

I'm sure others have more direct ways of importing data from a file etc. Check the wiki as wrll.

Reply all
Reply to author
Forward
0 new messages