Skip to content

Releases: Dinnsen/ha-middagsro

v2.0.2

Choose a tag to compare

@github-actions github-actions released this 21 Oct 20:28
a62824f

Fixed

  • A favourite with a one-word name (SMOOTHIE, SMØR) is only "cheaper in Netto" when the offer names its brand or variety (Lovemade, Lurpak, quinoa & æble) – not just any smoothie or any butter.
  • The badge on a favourite shows the price you pay in the other chain; the popup opens with that very offer at the top, with what it comes to for REMA's size, and a button that puts it on that chain's list.

v2.0.1

Choose a tag to compare

@github-actions github-actions released this 21 Oct 20:09
7af1609

Fixed

  • The list buys what the recipes use. The overview's amounts are the AI's first guess; the recipes come after, for the household, and two dishes may share a line (the lasagne's and the hakkebøffer's minced meat). Now a line's packages grow to what the dishes need – never more than fourfold, never fewer – also after a dish is swapped or a recipe rewritten. The recipe writer is also told what is actually bought ("2 × 400 g").
  • Cæsardressing finds REMA's CÆSAR DRESSING: a compound search word is also tried as two words, and matches a two-word name.

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 19:48
fba5592

Changed

  • The panel stays out of your way. The field you are typing in keeps its focus, caret and keyboard when the page is redrawn (while a plan is being made, after a toast), and the page is only redrawn when something actually changed. A toast no longer redraws the page at all.
  • No tap is lost. Actions run one after the other: a tap while something else is in flight waits its turn instead of being ignored.
  • Timers ring wherever you are: a cooking timer sounds and vibrates once, whatever tab is open, with a toast – and a chip in the toolbar counts down the next one (tap it to get to the recipe).
  • Back to the app, up to date: coming back after a while (or while a plan is being made) reloads the plan and the list, so the partner's ticks and an automatic plan show up without a tap.
  • The older plan banner now also shows on the shopping list and the week's recipes, so an old list isn't sent by mistake.
  • The plan tab starts with tonight's dinner; the other chains' offers and prices follow below.
  • Big lists (favourites, a chain's offers, the recipe collection) are redrawn a moment after the last keystroke, not on every one.
  • A swipe inside a popup no longer changes the tab underneath, and leaving a chain's offers page lands on the plan again.
  • Sundhed is only recalculated when the plan changed (or Regn igen is tapped).
  • A problem drawing one page shows "Prøv igen" instead of a blank panel; the toast sits above popups and is announced to screen readers.

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 17:20
0e87c97

Changed

  • Steadier against REMA's and Tjek's hiccups. A maintenance page instead of JSON, a busy server (429, 502-504) or a refused token right after it was renewed no longer end in tracebacks or a "log in again" prompt: busy answers are tried again after a moment, REMA's trouble is told apart from a wrong password, and only one token renewal runs at a time however many requests hit the wall together.
  • Sending can't double up. Each item is marked sent the moment it is on the REMA list, so if REMA fails halfway the next send only sends the rest – and two sends can't run at once. The list is changed by one thing at a time (a send, a quick add, a clear).
  • Fewer requests to REMA: the primary list's id is remembered for a while (and read again if the list is gone), Tjek's products of an offer are remembered for six hours, and the Tjek key isn't looked for again and again when the page can't be read.
  • Overvågning and other chains match better: a watched text matches whole words (ris no longer fires on Kg-pris, te not on tomater), frozen is not fresh across chains, Spar 30 % is not a fat percentage, a 2 kg bag is not compared with a 500 g pack, 2 stk. / 175 g is priced as two, pr. 1/2 kg is half a kilo, and a long description no longer spoils a match. A watched REMA product is also found in REMA's own next avis before REMA prices it. The matching runs off Home Assistant's event loop, so a long watch list no longer freezes anything.
  • Comparing a plan's items with other chains counts from today, not the plan's first day, and skips what is bought.
  • Food aviser called Julemad or Haveavis are no longer dropped as non-food.

Fixed

  • A damaged file of first-seen aviser no longer stops the offers; entries older than 90 days are forgotten.
  • The dinner sensor and the calendar are no longer polled (they are told when plans change); the calendar's end date is exclusive, as Home Assistant expects.
  • The account's stored plans and offers are deleted when the account is removed.
  • Diagnostics no longer include the family's allergies and what they avoid (counts only), and include the chains and watch list state instead.
  • A login the site itself fails (maintenance, a changed page) shows "cannot connect" instead of an unknown error with a traceback.

v1.8.1

Choose a tag to compare

@github-actions github-actions released this 21 Oct 17:05
50bccf7

Fixed

  • The plan check no longer calls these repeats: pasta med kødsovs and pasta carbonara, tomatsuppe and græskarsuppe, kyllingegryde and oksegryde – what is on the pasta is the dish, and only kinds that define a dish (pizza, lasagne, burger, frikadeller …) count as the same. Laksefilet is still laks.
  • A fixed day passes its check when the dinner is what the day says (rugbrød med æg on Rugbrødsdag) or the AI marks it as the fixed day; before, the default rye-bread thursday failed every time and cost two needless AI rounds.
  • When the AI is asked to put a plan right, it is shown its own previous plan and told to change only the days named, so the rest stays.
  • The shopping list from the family's own recipes: an item two recipe days share is bought for both, a line one of them keeps is no longer dropped, and løg no longer takes the hvidløg line (nor mælk the havremælk).
  • Recipe amounts like 1½ dl, 1/2 l and 2 x 400 g are read right, and the recipe on the day is scaled to the household like the shopping list (with the servings it is for now).
  • Overrask os is checked like any other plan (leftover days, time, dislikes).
  • A milk allergy no longer prefers lactose-free dairy, which still has milk protein.

v1.8.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 16:40
aa0ae5b

Changed

  • The plan is checked, not just asked for. The AI often broke the rules (salmon three weeks running, a favourite remade its own way, pita bread with a kebab pizza). Now every plan is checked after the AI answers: no dish from the last weeks again (by its main dish – laks med pasta is laks med ris), nothing the family dislikes, no dish twice in a week, the right number of leftover days from a double portion, the vegetarian count, fixed days (torsdag: rester must be leftovers), the weekday time limit and the budget. What is wrong goes back to the AI, up to twice, and the best try is kept. What it still couldn't fix is shown on the plan, under the price.
  • The last weeks are what the family actually had: for every date the plan that was sent (or the newest), not every draft that was ever made – and the favourites and recipes they just had are not offered as inspiration.
  • Your own recipes are used as they are. A dinner that is one of your favourite dishes, or a ❤️ recipe in the collection, uses that recipe – its ingredients go on the shopping list in amounts for your household (children count for less), with the REMA products it names – instead of the AI's own version of the dish. The AI is told so for every favourite that has a recipe, and the plan is tied to it even when the AI forgets.
  • Products: a dish made of the ingredient is not the ingredient (a kebab pizza is no kebab, a chicken wrap no chicken), fruit and vegetables are fresh unless the line says frozen (frisk broccoli was frozen broccoli), and frozen is not fresh the other way round.
  • The AI is told how many adult portions the household eats, so amounts fit (a one-year-old is not an adult).
  • Swapping a dish also keeps away from the last weeks' dishes, and a dish from the collection uses the family's recipe.

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 20:49
4d3721c

Added

  • Faste varer only once on the REMA list (Indstillinger → Indkøb og varer → Faste varer hver uge): with Send ikke faste varer, der allerede står på REMA-listen on, a must-have that is on the list in the REMA app and not bought is not sent again, so its amount isn't added on top. The note after sending says how many were already there. Off by default (#28).

v1.6.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 20:45
7992e93

Added

  • Overvågning (watch list) at the top of Favoritter. Tap the 🔔 on a favourite, a product card or a search result to watch it. The list shows where each watched item is on offer – in REMA (now, or from next week's avis) and in the chains chosen in the settings – with the price and a button that puts it in the basket (REMA) or on that chain's shopping list.
  • Watch something REMA doesn't sell, or any brand: type it and choose Overvåg "…" som tekst. A text is on offer wherever an avis offer has all its words, REMA's own avis included.
  • Add favourites yourself: a search field in Favoritter finds REMA's products; + Favorit adds one next to the products with a heart in the REMA app (Fjern takes it off again).
  • Notifications only for the watch list (Indstillinger → Overvågning og beskeder): choose the phone (Companion app) or a notification in Home Assistant. The list is checked every 3 hours, and each new offer is told once, with 🔔 in the title, 🛒 for REMA and 🏷️ for other chains, the product photo, and a tap opens Middagsro. Tjek nu og send besked checks right away.
  • A Ryd button next to every search field.

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 18:15
392f649

Changed

  • Send empties the basket. The items sent to the REMA app leave the list under Indkøb, and the next send only has what was added since – nothing ends up twice in the app. A note says how many items were sent and when, and Genskab seneste kurv puts the last sent items back (e.g. if the REMA list was lost). The plan's total still counts everything.
  • The send buttons say how many items will be sent, and are greyed out when everything is sent.

Fixed

  • An offer from REMA's avis that the webshop doesn't sell (a partivare, e.g. a glue gun) can be put on the list: it gets the avis's name and price, and becomes REMA's product if REMA has it when the list is sent. Before, it failed with "REMA 1000 doesn't have that product".
  • Searching in the basket also shows matching offers from REMA's avis, so partivarer can be found there.

v1.4.4

Choose a tag to compare

@github-actions github-actions released this 20 Oct 04:04
4d94623

Added

  • Writing a recipe yourself (or editing one): type an ingredient and REMA's products for it show up under the field. Tap one to link the ingredient to that product – the shopping list then gets the very item when the recipe is put on the plan. Fjern takes the link off again.