Simulating Frames traveling from the Sensor over the Network Layer and trying to reduce the amount of Frames passing through the Network using an Algorithm by marking them as Essential Frames.
-
Install Python version >= 3.12 from python.org
-
$ python3.12 -m venv .venv $ source .venv/bin/activate $ pip install -r requirements.txt $ python src/power_aware_iot.py $ deactivate
-
or use
make
$ make venv # initialize virtual enviroment $ make install # install deps from requirements.txt $ make run # runs src/power_aware_iot.py $ make clean # removes .venv
-
power_aware_iot.py
- Contains definition of Fixed Sized Frame, Algorithm to filter Essential Frames and other related functions. -
visualize.ipynb
- A Jupiter notebook to use API exposed by power_aware_iot.py and visualize the amount of Essential Frames passing through after applying the Algorithm. -
get_historic_weather_data.py
- To pull some historic weather data to simulate the temperature and humidity data coming from the sensor.