Ok ! I hadn't understood that at all.
So, that's what I did, but my toot has no image. Though the logs mention 1 upload of image... ?
Sep 2 14:42:51 vegan weewx[12010] DEBUG weewx.engine: Loading service user.wxtoot.Toot
Sep 2 14:42:52 vegan weewx[12010] INFO user.wxtoot: service version is 0.04
Sep 2 14:42:52 vegan weewx[12010] INFO user.wxtoot: unit system is metric
Sep 2 14:42:52 vegan weewx[12010] DEBUG user.wxtoot: site_dict is : {'station': 'biotmeteo', 'key_access_token': 'EDITED :))', 'server_url_mastodon': '
https://piaille.fr', 'post_interval': '14400', 'cardinal': 'true', 'image_directory': '/home/weewx/external_html', 'images': 'daytempdew.png,dayrain.png,dayuv.png', 'template_file': '/home/weewx/external_html/mastodon.txt', 'format_choice': 'template', 'dev_mode': False, 'log_success': True, 'log_failure': True, 'unit_system': 16, 'format_ordinal': True, 'format': 'Missing template file path', 'server_url_image': '', 'template_last_file': '', 'format_None': '-', 'format_utc': False, 'ordinals': ['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW', 'N', '-'], 'visibility': 'unlisted'}
Sep 2 14:42:52 vegan weewx[12010] INFO user.wxtoot: toot visibility is unlisted
Sep 2 14:42:52 vegan weewx[12010] INFO user.wxtoot: binding is archive
Sep 2 14:42:52 vegan weewx[12010] INFO user.wxtoot: Data will be tooted for biotmeteo
Sep 2 14:42:52 vegan weewx[12010] DEBUG weewx.engine: Finished loading service user.wxtoot.Toot
Sep 2 14:46:13 vegan weewx[12010] DEBUG user.wxtoot: number of images for upload 1
The images are accessible. Example:
$ ls -al /home/weewx/external_html/daytempdew.png
-rw-r--r-- 1 weewx axelle 8161 Sep 2 15:20 /home/weewx/external_html/daytempdew.png
This is weewx.conf:
[StdRESTful]
[[Mastodon]]
station = biotmeteo
# from your account under preferences/development/application
key_access_token = EDITED :)
server_url_mastodon =
https://piaille.fr # Mastodon will rate limit when excessive requests are made
post_interval = 14400
# convert from numeric degrees to Cardinal points - true or false
cardinal = true
# complete if fetching images via a webserver
#server_url_image = ''
# complete if uploading images from a local directory
image_directory = '/home/weewx/external_html'
# comma separated list of up to 4 images
images = 'daytempdew.png,dayrain.png,dayuv.png'
# example: /var/www/html/weewx/DATA/mastodon.txt
template_file = '/home/weewx/external_html/mastodon.txt'
#template_last_file = '/var/www/html/weewx/DATA/mastsummary.txt'
# post formats - simple, full, template
format_choice = template
dev_mode = False