Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
slafi committed Oct 25, 2019
1 parent a2b6a8a commit f155f4b
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 10 deletions.
22 changes: 13 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ One Paragraph of project description goes here
The VoltaZero Sensing Unit (VSU) wirelessly relays data to the Helium Atom at regular time intervals. The latter publishes the relayed data to the public Helium MQTT server. Any software application can use a MQTT client and the relevant authentication credentials in order to subscribe to the appropriate topic to which telemetry data is published. The VoltaZero Monitor uses the [paho-mqtt](https://pypi.org/project/paho-mqtt/) client in order to retrieve the data published by the VSU/Helium Atom.

![Data Flow](./resources/data_flow.png)
*The VoltaZero Monitor retrieves and processes the telemetry messages published to the Helium MQTT server.*
*The VoltaZero Monitor retrieves and processes the telemetry messages published to the Helium MQTT server*

### Telemetry Data Structure

Expand Down Expand Up @@ -130,6 +130,14 @@ Explain what these tests test and why
Give an example
```

## Known Limitations

Tkinter does not offer a thread-safe backend for matplotlib. Thus, an exception might be raised when stopping the application due to running the Viewer instance on a distinct thread. As a workaround, other backends may be used (e.g., wxAgg).

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

## Deployment

Add additional notes about how to deploy this on a live system
Expand All @@ -143,18 +151,14 @@ Add additional notes about how to deploy this on a live system

* [Python 3](https://www.python.org/)

## Known Limitations

Tkinter does not offer a thread-safe backend for matplotlib. Thus, an exception might be raised when stopping the application due to running the Viewer instance on a distinct thread. As a workaround, other backends may be used (e.g., wxAgg).

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

## Authors

* **Sabeur Lafi** - *Initial work*

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Related Projects

* [VoltaZero Shield](https://github.com/slafi/VoltaZero)
2 changes: 1 addition & 1 deletion core/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def draw(self):
self.axs[i].set_xlim(min_x_lim, max_x_lim)

# Uncomment if plot update's screenshots are required
# plt.savefig(f'img/new/image_{datetime.datetime.timestamp(datetime.datetime.now())}.png')
# plt.savefig(f'img/image_{datetime.datetime.timestamp(datetime.datetime.now())}.png')

# Show plot without blocking the running process
plt.show(block=False)
Expand Down
Binary file added img/case_study.mp4
Binary file not shown.
22 changes: 22 additions & 0 deletions img/copy_rename.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from shutil import copyfile
from os import listdir
from os.path import isfile, join

onlyfiles = [f for f in listdir('./new/') if isfile(join('./new/', f))]
onlyfiles.sort()
print(onlyfiles)

i = 1
for infile in onlyfiles:
if infile[len(infile)-3:len(infile)] == 'png':
if i <= 9:
suffix = f'00{i}'
elif i <= 99:
suffix = f'0{i}'
else:
suffix = f'{i}'

copyfile('./new/'+infile, f'./files/image_{suffix}.png')
i += 1

# ffmpeg -framerate 1/5 -pattern_type glob -i "./files/*.png" -vf "fps=25" out.mp4 -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"
Binary file added img/out.mp4
Binary file not shown.

0 comments on commit f155f4b

Please sign in to comment.