Hello everyone ![]()
I’m working on an external integration for Pharmacies de garde for Gladys. The goal: to know at a glance which pharmacy is on duty near you, on the dashboard and in the scenes.
The integration is not yet published.
It is not in the Gladys store and does not yet have a Docker image. This post is to present the project and find data sources before release.
What it will do
- A « Pharmacy on duty » device: name, address, phone, distance, source
- A widget for the dashboard: the pharmacy on duty, until when, its phone, a link to the map and to 3237
- Scene triggers:
- the pharmacy on duty has changed
- no pharmacy available
- the duty roster is about to end
- Scene actions:
- « Find the pharmacy on duty » now, tonight, tomorrow or next Sunday (perfect for a Telegram message on Saturday night
) - « Refresh pharmacies »
- « Find the pharmacy on duty » now, tonight, tomorrow or next Sunday (perfect for a Telegram message on Saturday night
- Two buttons in the configuration: « Test sources » and « View upcoming duties »
- 4 languages: FR, EN, DE, ES
- Local / cloud badge on the device
- Gladys 5.3 minimum
The real problem: the data
In France, there is no public and open source of pharmacies on duty:
- 3237 / Résogardes, Servigardes, MonPharmacien: private services, no API
- ameli (pharmacie-de-garde.ameli.fr): the only national source, but its API is reserved for partners
- data.gouv.fr: a few local datasets, often outdated (Chambéry, Tours, Hauts-de-Seine…)
So the integration will work with:
- the duty roster of your area, pasted into the configuration. It remains local, nothing leaves your home
- or a roster published online (a URL to a text or JSON file)
- OpenStreetMap, to complete the address, phone and distance
Duty roster format
One duty per line, fields separated by ;:
date [> end] ; name ; address ; phone
Examples:
2026-11-01 ; Pharmacie du Centre ; 12 rue de la Paix ; 04 78 00 00 01
2026-11-07 19:00 > 2026-11-14 09:00 ; Pharmacie des Halles
15/11/2026 9h00 ; Pharmacie du Pont
- a single date = all day
- a start time without end = 24 hours
- address and phone are optional
- JSON is also accepted
I also wrote to the CNAM to request partner access to the ameli API. I’ll keep you updated on the response.
I need your help
- Do you know a source of duty rosters in your department? Pharmacists’ union, town hall, open data, local press, file published every month… Give me the link: I can offer ready-made sources.
- Testers for the first version. It’s not out yet: respond to the poll, I’ll notify you as soon as it’s in the store.
- Your opinion on the widget: what would you like to see there?
- Yes, I want to test it as soon as it’s released
- Yes, but I’ll wait for a stable version
- Yes, if an automatic source exists for my department
- No, not for me
This is a practical tool, not a medical service. At night, 3237 remains the reference. In an emergency: 15 or 112.
Code and documentation (in progress): GitHub - prohand/gladys-pharmaciesgarde: Gladys external integration to see pharmacy on duty in Gladys · GitHub
Thanks in advance for your feedback! ![]()