Closed tomhartley closed 11 years ago
This is what I have courtesy of the configparser module. I haven't pushed the changes, since it will mean the website instructions will need to be updated as well.
[AirPi] Watchdog = False I2CBus = 1 LCD = False Debug = True
[Cosm] Enabled = True APIKEY = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx FEEDID = xxxxxx
[ADC] ADC = MCP3008 MOSI = 23 MISO = 24 CLK = 18 CS = 25
[DHT22] Enabled = True DHTPin = 4
[BMP085] Enabled = True Altitude = 35 MSLP = False
[UVI-01] Enabled = True ADCPin = 4
[LDR] Enabled = True ADCPin = 0
[TGS2600] Enabled = True PullUp = 22000 ADCPin = 1
[MICS-2710] Enabled = True ADCPin = 2 PullUp = 10000 Resistance = 90000
[MICS-5525] Enabled = True ADCPin = 3 PullUp = 100000 Resistance = 190000
Looks slick - some other things I'm thinking of now... Number of failures in a row to restart Internet (along with an enabled/disabled thing too I guess), and time between consecutive uploads. If you submit a pull request from your fork, I'll have a look and change the website, then pull it in. Many thanks for the contributions!
Things which should probably be in the config file:
Not sure what format it should be in yet.