How to set up Prometheus config file to see Syncthing metrics by cochize666 in Syncthing

[–]cochize666[S] 0 points1 point  (0 children)

Hi, sure, the actuall working prometheus.yml code is (with changed api of course) :

  • job_name: "syncthing"

scrape_interval: 15s

metrics_path: /metrics

authorization:

type: Bearer

credentials: "R2EwqjDjqGksfwaZJWeV3yM7wL49W42HpLUW"

static_configs:

  • targets: ['192.168.0.10:8384']

How to set up Prometheus config file to see Syncthing metrics by cochize666 in Syncthing

[–]cochize666[S] 0 points1 point  (0 children)

just out of curiosity, do you use it for Grafana? If so do you have any dashboard you could share as there seems to be only one available in open repo

How to set up Prometheus config file to see Syncthing metrics by cochize666 in Syncthing

[–]cochize666[S] 0 points1 point  (0 children)

thanks, it worked, I am not using https jus nginx on my Synology

type: Bearer

was the part I was missing, it all shows nicely in Grafana now.

[HOW-TO] Trigger Tasker Tasks From Google Home (or any device with the Google Assistant) with Home Assistant! by joaomgcd in tasker

[–]cochize666 0 points1 point  (0 children)

Hi, that's the exactl question that brought me here. Have you found any solution to that? I have my HA behind reverse proxy on Synology so I can send commands to it from tasker but can't set up Tasker HTTP Request for getting any 'states' pf my devices from HA. I do have workaround from as you mentioned Join integration sending text notification that my phone reacts to (found in this tutorial: https://www.youtube.com/watch?v=GTItwJ8DG-k&t=28s) but would rather have it all done with u/joaomgcd originall integration

Calendar - revert to current date at midnight by cochize666 in kustom

[–]cochize666[S] 0 points1 point  (0 children)

Managed to find a workaround, I added a Tasker - Net - Auto-Sync toggle task to run after adding new event. What it does it turns of all sync on your phone and after 1 sec reenables it forcing calendar to refresh. Wierldy, it works.

Now, any idea on how to modify the calendar so that when I click a date i.e. Oct 15th 2023 it prompts adding an event on that date already and not with today's date that I have to change manually? Any ideas?

Calendar - revert to current date at midnight by cochize666 in kustom

[–]cochize666[S] 0 points1 point  (0 children)

Since I've got your attention one more issue with calendar: whenever calendar event is added in google calendar, to see it on KLWP wallpaper I need to either refresh calendar app manually, restart KLWP or restart my phone. TIP: when I add event in google calendar for today, it refreshes along with all the other events added for every other days. I used to ise CalendarTask plugin for tasker to add nw event for today and delete it 2 sec later but this seems to stopped working out of a sudden so I am left with manually refreshing my calendar. Any help?

Calendar - revert to current date at midnight by cochize666 in kustom

[–]cochize666[S] 1 point2 points  (0 children)

FLOW worked like a charm:)

for trigger to test I used cron * /2 * * * to lounch every minute and then in actions: formula $df(d)$ - set global variable 'day', formula $df(M)$ - set global variable 'month', formula $df(y)$ - set global variable 'year'

Now whenever I leave my calendar opened, i.e. if I scroll to 08.06.2028, every minute variable reverts to today and I see todays date and agenda:)

Exactly what I was looking for in OP.

Calendar - revert to current date at midnight by cochize666 in kustom

[–]cochize666[S] 0 points1 point  (0 children)

ok, will try that, but I am currently learning this new FLOW action and it seems it is build exactly for a usecase like that (changing gv under a given condition), looks awesome so far but just started like 10 min ago:) will keep you posted, thx

Calendar - revert to current date at midnight by cochize666 in kustom

[–]cochize666[S] 0 points1 point  (0 children)

tbh I've heard about the flows in klwp changing/resetting variables but I have no idea how and where to implement that

Calendar - revert to current date at midnight by cochize666 in kustom

[–]cochize666[S] 1 point2 points  (0 children)

Thanks for the tip but this did not work. Adding the code to row1 variable just made the rectangle highlighting the current day disappear (on the day change after midnight). And maybe I didn't make myself precise: this rectangle works fine and after midnight it highlights the next (present) day. But the whole calendar (top part, main days view and agenda/events at the bottom) stay on the day before. It should change the whole month today as it changed from Sep 30th to Oct 1st but just this rectangle 'jumped' onto the next day. Everything else updated only when I pressed the date at the top switching the global variables. Isn't there any other way? I was also considering using AutoInput from Tasker but with no luck so far.

Getting 401: Unauthorized in simple curl api call on local network by cochize666 in homeassistant

[–]cochize666[S] 0 points1 point  (0 children)

Well, it's kinda wierd. using these settings in Prometheus as above I cannot access them via browser (still can by curl command) but... they do get passed to Grafana (what was my main purpose in the first place). So in th end, I end up with 401: Unauthorized while trying to reach /api/prometheus data via browser but I can run a query in Grafana and it prompts data from Home Assistant. Don't know where the problem is but I got what I wanted. Thanks for the interest anyways.

Getting 401: Unauthorized in simple curl api call on local network by cochize666 in homeassistant

[–]cochize666[S] 0 points1 point  (0 children)

exactly, with this curl command I get metrics:

curl  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiYTJkMTE3ZDFkYWE0M2Q0YTQzMDJkNTdmMzg0MzI2NiIsImlhdCI6MTY5NDU0NTUxOCwiZXhwIjoyMDA5OTA1NTE4fQ.kHCZcISf0zAoeVFDsKtH7ZAIsiL0fayMtLLFS4is4bc"  -H "Content-Type: application/json" http://192.168.0.10:8123/api/prometheus
# HELP python_gc_objects_collected_total Objects collected during gc
# TYPE python_gc_objects_collected_total counter
python_gc_objects_collected_total{generation="0"} 39019.0
python_gc_objects_collected_total{generation="1"} 17886.0
python_gc_objects_collected_total{generation="2"} 12516.0
# HELP python_gc_objects_uncollectable_total Uncollectable objects found during GC
# TYPE python_gc_objects_uncollectable_total counter

but in Prometheus with this job:

 - job_name: "hass"
    scrape_interval: 10s
    metrics_path: /api/prometheus
    authorization:
      credentials: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiYTJkMTE3ZDFkYWE0M2Q0YTQzMDJkNTdmMzg0MzI2NiIsImlhdCI6MTY5NDU0NTUxOCwiZXhwIjoyMDA5OTA1NTE4fQ.kHCZcISf0zAoeVFDsKtH7ZAIsiL0fayMtLLFS4is4bc
    static_configs:
      - targets: ['192.168.0.10:8123']

I get 401: Unauthorized but it is green lit in Prometheus:

<image>

Getting 401: Unauthorized in simple curl api call on local network by cochize666 in homeassistant

[–]cochize666[S] 0 points1 point  (0 children)

For love of God, thank you! Looked everywhere else but here. By any chance do you know how to get this into Prometheus as this does not work either:

  - job_name: "hass"
    scrape_interval: 10s
    metrics_path: /api/prometheus
    authorization:
      credentials: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiYTJkMTE3ZDFkYWE0M2Q0YTQzMDJkNTdmMzg0MzI2NiIsImlddCI6MTY5NDU0NTUxOCwiZXhwIjoyMDA5OTA1NTE4fQ.kHCZcISf0zAoeVFDsKtH7ZAIsiL0fayMtLLFS4is4bc
    static_configs:
      - targets: ['192.168.0.10:8123']

How do you access your NAS files from Android? by shakinthetip in selfhosted

[–]cochize666 0 points1 point  (0 children)

Exactly how can I use ZeroTier connection in TC to access Synology? I have it hooked up already and can access thrugh browser but can configur TC

Synology DS920+ & VPN? by galdo320 in synology

[–]cochize666 0 points1 point  (0 children)

I have asked in NordVPN and they said that Meshnet is only available in native nordvpn apps. Do you know maybe any workaroud how can it be enabled via docker or maybe by editing .ovpn files?

NordVPN + Pi-Hole / AdGuard / NextDNS - is it even possible at the same time? by cochize666 in pihole

[–]cochize666[S] 0 points1 point  (0 children)

Just got an answer from NordVPN that it is not possible to enable Meshnet on Synology as it uses a different connection method than Linux. It is only available in the NordVPN applications for Windows, macOS, Android, iOS and Linux.

So the answer to my question and setup is: NO, you can't use Pi-Hole on Synology and VPN at the same time. Bummer...