Author Topic: FOSHKplugin question about restricting to a specific device.  (Read 458 times)

0 Members and 1 Guest are viewing this topic.

Offline Daali

  • weather n00b
  • Senior Contributor
  • ****
  • Posts: 231
    • The weather in Jefferson, GA
Good afternoon!

Does anyone have an example of how to place the below in the URL within WS_View
Code: [Select]
?auth=[PASSKEY]
and I would need to add this to the config:
Code: [Select]
AUTH_PWD = PASSKEY # if set, only incoming & outgoing http-requests containing this passphrase will be accepted
Thank you for the help!

Offline olicat

  • Forecaster
  • *****
  • Posts: 1750
  • GWxx00, HPx5x1C, WN19xxC & WS3xx0C
    • FOSHKplugin
Re: FOSHKplugin question about restricting to a specific device.
« Reply #1 on: May 02, 2025, 04:50:16 AM »
Hi!

FOSHKplugin only checks whether the string specified under AUTH_PWD is contained in the incoming http string. In this respect, you can simply use the PASSKEY - this is always contained in the Ecowitt upload string.
If you want to access the web interface of FOSHKplugin, you should then append ?auth=[PASSKEY] to the respective URL. E.g.: http://ipaddress:port/FOSHKplugin/help?auth=000102030405060708090A0B0C0D0E0F

Keep in mind:
I advise against using FOSHKplugin on a server accessible from the Internet. The protection via AUTH_PWD is minimal. However, it basically works and I know some users who do it this way. I would not.

Oliver

Offline Daali

  • weather n00b
  • Senior Contributor
  • ****
  • Posts: 231
    • The weather in Jefferson, GA
Re: FOSHKplugin question about restricting to a specific device.
« Reply #2 on: May 02, 2025, 08:05:32 AM »
Perfect solution. This is exactly what I needed. 

I can't thank you enough.