Video presentation: https://www.youtube.com/watch?v=Ce1ZMYNVdmQ&feature=youtu.be
Content of the self declaration
Fields | Type |
---|---|
UUID Citizen | char[] |
Dpi measures | char[] |
Simptoms | char[] |
Temperature | float |
Geographical sector id | char[] |
Departure time | datetime |
Arrival time | datetime |
Reason | char[] |
Destinations | [ [(gps_coord, timestamps) ], [ ] ] |
- Simulate one user and associate a random home gps coordinate.
- Simulate random destination point within a radius of 1 km from home position
- Simulate a first self declaration from Home to one destination
- Get detailed navigation instructions and fill the Destinations field of the self declaration
- Simulate temporary declaration by pushing it to the distributed digital ledger, the Tangle
Create a visualization tool to show the path
- Create two users and two declarations with same destination point and time interval
- Use visualization tool to show the paths
- Retrieve all declarations sent to specific address [Issue compromised content: https://iota.stackexchange.com/questions/2499/problem-retrieving-the-content-of-zero-value-transactions-from-the-testnet]
- Create N users, N declarations in the same geographical area
- Push declarations to the Tangle
Investigate how to determine if two citizens have shared a portion of the path
Assume one user is tested positive for the CoronaVirus after some time
- Retrieve all declarations from the immutable ledger
- Simulate random positive test results citizen with universally unique identifier
- Create a Check function that given all retrieved declarations, and the id of a positive citizen returns a list of all possible contaminated users that have shared the same places at the same time and associate an number proportional to the exposure
Clone the repository:
git clone https://github.com/GiovanniBalestrieri/autodichiarazione_2.0.git
Create and activate vitual environment:
cd autodichiarazione_2.0
python3 -m venv environ
. environ/bin/activate
pip install --upgrade pip
Install requirements:
pip install -r requirements.txt
Test the milestone you prefer. If you are interested in the output of mileston0:
pythone milestone0.py
When you are done. Deactivate the virtual environment and go back to normal life