Hi Daniel,
I tried using both username: and email: with no success. There are no messages in the log that say I passed or failed authentication, even if I put an incorrect password in. I think it’s worth cleaning this part of the code up to help in debugging authentication issues.
Hi, I have a question.
I’m not sure if I’m properly authenticated.
How can I see using logger?
My yaml:
This folder has been created automatically:
Which file should I check?
Reading in this community I have read that I must see in my log a message like this: The form appears to have been submitted successfully.
Where is?
The form is hidden within a <script> tag, and showed with Javascript. This makes it a complicated case, I’ll try to take a better look later.
I’m not sure if I can make this more clear, as in the end, it is a form-submit feature, and not just for authentication. So I cannot assume that authentication failed, it can be any kind of form. E.g. your address for retrieving a garbage collection schedule.
Hi all, my problem is config weather station in HA with xml file and multiscrape, this is page
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<maintag>
<script/>
<misc>
<data misc="refresh_time">2022.10.12. 230831</data>
</misc>
<data realtime="temp">22.11111111111111</data>
</realtime>
Invalid config for [multiscrape]: [multiscrape] is an invalid option for [multiscrape]. Check: multiscrape->multiscrape->0->multiscrape. (See /config/configuration.yaml, line 11).
Error loading /config/configuration.yaml: while parsing a block mapping
in "/config/configuration.yaml", line 2, column 1
expected <block end>, but found '-'
in "/config/configuration.yaml", line 104, column 1
I made it work only this way, my weather station wh2900, connected to pc with weewx generate files realtime.xml and realtime.txt. Not working to me with scrape, multiscrape, rest.
content realtime.txt
17/10/22 09:45:21 16.6 66 10.2 12.8 11.9 77 0.0 0.0 1011.9 ENE 2 km/h C hPa mm 42.4 0.4 4.3 428.2 0.0 20.4 54 16.6 4.0 17.4 09:25 12.4 06:17 22.4 09:14 31.4 09:14 1012.6 08:39 1009.6 00:02 4.5.1 0 27.7 16.1 18.0 6 0.0 672 96 0.0 0 1 0 E 808 m 14.4 3.6 675.0 0
decode realtime.txt
############################################################################
# Reference: Cumulus Format of realtime.txt file
############################################################################
# Field Pos Example Description
# date 0 18/10/08 date (always dd/mm/yy)
# time 1 16:03:45 time (always hh:mm:ss)
# temp 2 8.4 outside temperature
# hum 3 84 relative humidity
# dew 4 5.8 dewpoint
# wspeed 5 24.2 wind speed (average)
# wgust 6 33.0 wind speed (gust)
# avgbearing 7 261 wind bearing
# rrate 8 0.0 current rain rate
# rfall 9 1.0 rain today
# press 10 999.7 barometer
# wdir 11 W wind direction
# beaufort 12 6 wind speed (beaufort)
# windunit 13 mph wind units
# tempunit 14 C temperature units
# pressunit 15 mb pressure units
# rainunit 16 mm rain units
# windrun 17 146.6 wind run (today)
# pressrend 18 +0.1 pressure trend value
# rmonth 19 85.2 monthly rain
# ryear 20 588.4 yearly rain
# rfallY 21 11.6 yesterday's rainfall
# intemp 22 20.3 inside temperature
# inhum 23 57 inside humidity
# wchll 24 3.6 wind chill
# temptrendval 25 -0.7 temperature trend value
# tempTH 26 10.9 today's high temp
# TtempTH 27 12:00 time of today's high temp (hh:mm)
# tempTL 28 7.8 today's low temp
# TtempTL 29 14:41 time of today's low temp (hh:mm)
# windTM 30 37.4 today's high wind speed (average)
# TwindTM 31 14:38 time of today's hi wind (avg) (hh:mm)
# wgustTM 32 44.0 today's high wind gust
# TwgustTM 33 14:28 time of today's high wind gust (hh:mm)
# pressTH 34 999.8 today's high pressure
# TpressTH 35 16:01 time of today's high pressure (hh:mm)
# pressTL 36 998.4 today's low pressure
# TpressTL 37 12:06 time of today's low pressure (hh:mm)
# version 38 1.8.2 Cumulus version
# build 39 459 Cumulus build no
# rmaxgust 40 1.6 Recent Max Gust
# heatindex 41 76.2 Heat Index
# humidex 42 24.9 Humidex Index
# uv 43 0.02 UV (if you have it)
# et 44 0.6 ET
# solar 45 220 Solar (if you have it)
############################################################################
Hi
I have createded a scraper to retrieve currency values . But somehow the history inst values presented in a curve, but in i line. Also its flat 10 in the curve. I tried unit € or Kr, but still a problem
Do i need to use some kind of value template
I’m trying to get my solar panel information from a username/password protected website (https://aeg.invertercontrol.com/). Here is a snippet of the page with the username and password boxes:
In my config, I have enabled the following options:
I have the following enabled the log_response option and I see that the login page is scraped and not the dashboard page that I actually need, so the logon is unsuccessful.
Anyone have any idea which kind of CSS selection I should put here and if it’s even possible to login via a form submit here?
You need to provide a select for both resource and input. You can select the correct selector by right clicking on the HTML element where you have it open in the browser’s dev tools.
thanks! I do not have a log entry for not finding the form so I guess this works? but searching the website I found a different approach, without the login, which I prefer:
therefore I need to scrape the id of the first article in the left-area (there will be ne articles on top with new ids and that is the new information I am looking for):
Hi,
Thank s for the code! I’m getting the information in the sensor but I can’t manage to add the information as Grid consumption in the Energy section of Home Assistant. The sensor is not displayed. Have you tried to add it there?