Last modified 22 months ago
Last modified on 07/24/2010 08:11:10 PM
USB Weather Board SNMP
AgentX or standalone SNMPD to integrate the USB Weather Board from SparkFun into the Net-SNMP snmpd. You could run the weatherboardsnmpd either standalone, as agentx subagent or as a loadable module within the Net-SNMP snmpd. The weatherboardsnmpd is configured with the weather directive in the snmpd.conf
Download
- [[download:usb-weather-board-snmp-0.1.tar.gz]]
Config Syntax
############################################################################### # USB Weather Board # # The following are examples of how to use the agent to integrate the # USB Weather Board from SparkFun. # # weather PORT [ELEVATION] # # PORT: The path to the USB-Serial device. # ELEVATION: Elevation of the USB Weather Board for pressure correction. # # Examples: # weather /dev/ttyUSB0 708
snmpwalk
span[0] ~ $ snmpwalk -v2c -c public deeppurple.durchmesser.ch USBWeatherBoard USB-WEATHER-BOARD-MIB::weatherBoardUptime.0 = Timeticks: (708800) 1:58:08.00 USB-WEATHER-BOARD-MIB::weatherBoardPort.0 = STRING: "/dev/ttyUSB0" USB-WEATHER-BOARD-MIB::weatherBoardUpdate.0 = Timeticks: (0) 0:00:00.00 USB-WEATHER-BOARD-MIB::weatherBoardElevation.0 = INTEGER: 708 USB-WEATHER-BOARD-MIB::weatherShtHumidity.0 = INTEGER: 5586 USB-WEATHER-BOARD-MIB::weatherShtTemperature.0 = INTEGER: 8024 USB-WEATHER-BOARD-MIB::weatherScpTemperatureC.0 = INTEGER: 2770 USB-WEATHER-BOARD-MIB::weatherScpTemperatureF.0 = INTEGER: 8194 USB-WEATHER-BOARD-MIB::weatherScpPresure.0 = INTEGER: 93880 USB-WEATHER-BOARD-MIB::weatherScpPresureSeeLevel.0 = INTEGER: 101611 USB-WEATHER-BOARD-MIB::weatherTemtLight.0 = INTEGER: 1023 USB-WEATHER-BOARD-MIB::weatherBattery.0 = INTEGER: 0
DURCHMESSER-WEATHER-MIB
+--durchmesser(31865)
+--USBWeatherBoard(2)
|
+--weatherBoardInfo(1)
| |
| +-- -R-- TimeTicks weatherBoardUptime(1)
| +-- -R-- String weatherBoardPort(2)
| +-- -R-- TimeTicks weatherBoardUpdate(3)
| +-- -R-- Integer32 weatherBoardElevation(4)
|
+--weatherInfo(2)
|
+-- -R-- Integer32 weatherShtHumidity(1)
+-- -R-- Integer32 weatherShtTemperature(2)
+-- -R-- Integer32 weatherScpTemperatureC(3)
+-- -R-- Integer32 weatherScpTemperatureF(4)
+-- -R-- Integer32 weatherScpPresure(5)
| +-- -R-- Integer32 weatherScpPresureSeeLevel(1)
|
+-- -R-- Integer32 weatherTemtLight(6)
+-- -R-- Integer32 weatherBattery(7)
Attachments
- weatherboard1.jpg (94.8 KB) - added by marius 22 months ago.
- weatherboard2.jpg (67.9 KB) - added by marius 22 months ago.

