It is based on a JY-MCU basic AVR board with ENC28J60 Ethernet interface and a 1-wire bus to provide a local web server with real time temperature readings of any number of 1-Wire thermometers. In addition, it can be configured to post the readings to COSM data feed.
This is running at my house for quite some time and is posting indoors and outdoors readings every 10 min to the following COSM feed: https://cosm.com/feeds/100389
The hardware description can be found in my other post.
To compile the project download the JY-MCU hardware profile for Arduino and the following libraries:
The code can be download from here: TempServer V0.2.ino
The server use DHCP to configure the TCP/IP stack and then start (led 7 remains on while setting up, then led 8 start to blink for normal operation).
The configuration link on the main page will bring up the COSM configuration page where you can configure the posting interval, the feed id and the COSM API key (to reset this configuration, hold switch 1 when the program starts).
In the next versions I am planning to enhance the following (not in a particular order):
- Enable to name each sensor for display in the list and for posting the date to COSM.
- Log up to 96 past readings in the device EEPROM (every 15 min for 24 hours).
- Show the min/max of the logged values.
- Show graph of the logged values.
- Use network time to make sure date logging and posting is done properly even when the device restarts frequently (currently, the posting of data is done after the device is constantly on for the selected posting time, that is, if the post of data is every 10 min, and the device restart every 7 min for some reason, no data will ever be posted).
- Improve the posting code to retry on HTTP errors (currently the code ignore the returned HTTP code and does not check for time out).
Please let me know your thoughts (especially if you willing to give it go).