A Home Assistant integration for MyNetDiary.
MyNetDiary allows you to expose your personal data to the public (you can choose what data to show)
And This custom components grabs these data :)
-
Login into your account
-
Navigate to:
https://www.mynetdiary.com/person.do
-
Under
My Page
table, click thePrivacy
- Set
My Information Sharing Settings
to2 Weight Plan and Progress
and click save
- Go back to
My Page
and copy your community link (right click -> copy link address)
-
Copy the folder
mynetdiary
from custom_components directory to<config_dir>/custom_components/
.Example
<config_dir>/custom_components/mynetdiary
-
Open
<config_dir>/custom_components/mynetdiary/sensor.py
and changeMyNetDiary_URL
variable to your community link -
Restart Home Assistant
-
Add the following to your
configuration.yaml
file:
# Example configuration.yaml entry
sensor:
- platform: mynetdiary
- Restart Home Assistant
- Open Settings -> Devices & Services -> Entities -> Search for
mynetdiary
- You can test the script by running
test_script.py
Example of result
current_weight: 100.2
start_weight: 100.2kg on 15.04.24
lost_so_far: none