This python script automates data retrieval (signal strength) from Ubiquiti PowerBeam M5 400
which uses AirMax
This Script has 3 parts
- Normal Reading
- Reading With Raspberry Pi
requests
http
urllib3
- Configure PowerBeam M5
- Change the
base url
and passwords in the python code - if error occurs google it or contact me
It reading with raspberry is more difficult and require these following for the temperature , humidity and rain sensing
- DTH11 Sensor
- Rain Sensor (It is not used after first test) These are used for only to increase the accuracy
Adafruit_DHT
serial
also i have used interrupt to handle rain counting so this following code should be uploaded to Arduino
or any other micro controller or SOC Boards like raspberry pi , i did not use the Raspberry pi because it does not have a software interrupt on the 2 B
model
volatile int event_counter = 0;
void countEvent() { event_counter++; }
void setup() {
Serial.begin(9600);
pinMode(2, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(2), countEvent, FALLING);
}
void loop() {
Serial.println(event_counter);
delay(1000);
}