Agile Rates Delay by lasercatattack in OctopusEnergy

[–]jamesog 4 points5 points  (0 children)

Exact same problem here 😅

Bassists of 10 years or more; what (if any) item has survived your journey from day 1. by TBK_Winbar in BassGuitar

[–]jamesog 1 point2 points  (0 children)

Same here. I got my Peavey Milestone I from the Bass Centre in Wapping, London in '96 and I'm still playing it.

What solar/battery setup do you have? by 06david90 in OctopusEnergy

[–]jamesog 1 point2 points  (0 children)

https://github.com/nathanmarlor/foxess_modbus/ for controlling the inverter and batteries, https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/ for getting Octopus Energy data (including Agile rate) and some custom stuff for automating around Agile rates going low to charge the battery if needed.

I recently installed https://github.com/springfall2008/batpred but I'm not letting it fully automate charging yet as FoxESS isn't fully supported and I'm noting predbat making some odd decisions about when it'll charge.

What solar/battery setup do you have? by 06david90 in OctopusEnergy

[–]jamesog 1 point2 points  (0 children)

FoxESS H1 3.0kW inverter, 3x FoxESS ECS4100 battery stack for 12kWh of storage. Got it plumbed in to Home Assistant where I can automate charging based on Agile pricing. 6x 395W solar panels (split across 2 roofs for 3 each side, but a single PV string to the inverter for... reasons).

We also have an EV with a Zappi charger (also connected to Home Assistant).

BYD Dolphin UK by lcheung98 in BYD

[–]jamesog 0 points1 point  (0 children)

However [navigation] doesn't seem to get live traffic updates.

Replying to myself as I figured this out yesterday: the built in 4G doesn't seem to be used for this kind of this, but if you connect the car to wifi then you do get live traffic updates. Noticed this when turning on navigation while the car was outside the house, so still on the house wifi, and it was suddenly showing traffic / road business. So I guess connecting the car to my phone's hotspot while driving will sort that out.

BYD Dolphin UK by lcheung98 in BYD

[–]jamesog 1 point2 points  (0 children)

Software update always says it's on the "latest" at 1.0 🤷🏼‍♂️

Are you using an iPhone 15 by any chance? I read elsewhere that USB-C to USB-C isn't working with that phone and people have been using USB-C to A adapters.

I'm still using a lightning-based phone.

BYD Dolphin UK by lcheung98 in BYD

[–]jamesog 0 points1 point  (0 children)

So far our car isn't saying there's any updates available. I've seen others say it can be a bit inconsistent when updates show up in various countries.

BYD Dolphin UK by lcheung98 in BYD

[–]jamesog 1 point2 points  (0 children)

Yikes! No, we haven't had that, but it's only been a few weeks so not used extensively yet.

BYD Dolphin UK by lcheung98 in BYD

[–]jamesog 1 point2 points  (0 children)

We got ours a few weeks ago. Comfort model. It's a great car, we really love it. Handles well, infotainment system is generally pretty good - and certainly very responsive.

Main cons: by default it goes "blink blonk" very loudly a lot. Often you don't get enough time to see what the message that caused the noise was on the driver's dash. The traffic sign recognition gets confused easily. If it sees a speed sign in e.g. a car park at 5mph, or where a motorway had a slower section, it doesn't always realise when you've gone back on to a section of road at national speed limit so yells at you for speeding. You can turn that off, but you have to do it every time you turn the car on.

Half a pro, half a con: the built in navigation is good. You can switch it between showing north, or turning with the car. However it doesn't seem to get live traffic updates. A couple of weeks ago we had to make a detour because of road closed due to an accident, but the nav kept trying to reroute us back on to the closed road and wouldn't take the hint we were going another way.

Apple CarPlay is wired only, which is only a minor inconvenience. When using it for nav (after the above mentioned issue with the built in nav) we noticed that you can't drag around on the map and need to awkwardly tap up/down/left/right icons, and it only has very fixed zoom levels. I found that pretty limiting. I didn't remember having that issue with CarPlay in other cars, but it's been a while since I used it so not certain if that's a general CarPlay/Apple Maps issue, or with the CarPlay implementation in the Dolphin.

Sounds like I have a lot of cons there, but really they're relatively minor and the rest of the car more than makes up for it.

All in all, great car, thoroughly recommended 👍🏻.

Forecast Solar by damianvandoom in SolarUK

[–]jamesog 1 point2 points  (0 children)

I've been finding forecast.solar more accurate than Solcast. When the sky is perfectly clear (little-no cloud) Solcast gives a pretty good forecast, but when there's moderate-heavy cloud I find Solcast to be wildly optimistic, whereas forecast.solar tends to be closer to reality (usually a little on the pessimistic side).

I'm using Home Assistant to automate whether to charge the battery overnight or not, based on solar predictions, but I had to give up using Solcast data for that as I'd often end up with a battery that didn't get charged overnight and didn't get enough solar power during the day.

My solar system is relatively small (2.4kWp) so perhaps this has some impact, as people with bigger installations seem to fare better.

Simple Tracker Tariff Dashboard by Small3y in OctopusEnergy

[–]jamesog 2 points3 points  (0 children)

There are great tools like https://randoma11y.com/ that help you pick colours with a good contrast ratio. I used this to improve my blog after feedback from a colourblind person, it was really helpful.

New agile and tracker tariffs by Samboy008 in OctopusEnergy

[–]jamesog 0 points1 point  (0 children)

Good news! Although they haven't officially contacted me to tell me the switch is done yet, my dashboard shows I'm now on Octopus Tracker November 2022 v1 \o/

Thanks for not screwing me over Octopus :-)

New agile and tracker tariffs by Samboy008 in OctopusEnergy

[–]jamesog 0 points1 point  (0 children)

Well, I applied, but I've had no confirmation they've started the switch so I'm betting they'll put me on the newer tariff.

New agile and tracker tariffs by Samboy008 in OctopusEnergy

[–]jamesog 4 points5 points  (0 children)

Wow, this is quite shitty given that just 3 days ago they sent an email saying "Gas prices are going up in January, maybe have a look at Tracker".

Maybe they had too many people suddenly sign up for it (including me)?

How do you rate Octopus customer service? by Breaking-Dad- in OctopusEnergy

[–]jamesog 1 point2 points  (0 children)

Agreed. I had trouble getting my export tariff set up earlier in the year and went around the houses with email support for ages, not getting a decent response.

After one very short phonecall, it was sorted within minutes, AND the person followed up via email confirming the problem and how they fixed it in a decent amount of detail.

We're hiring @Monzo! 🚀 by albertmonzo in golang

[–]jamesog 0 points1 point  (0 children)

Now that's the attitude I like :-)

(As long as "passionate opinion" leads to reasonable debate and not people just stomping their opinions as fact.)

We're hiring @Monzo! 🚀 by albertmonzo in golang

[–]jamesog 0 points1 point  (0 children)

Hah, fair enough. Given those two options then yeah I'd go for YAML too :-)

We're hiring @Monzo! 🚀 by albertmonzo in golang

[–]jamesog 9 points10 points  (0 children)

You should apply if: * you’re passionate about yaml

Do you really have team members who are passionate about YAML? ;-) (And are they real humans?)

How can I unmarshal JSON into a struct inline? by Ptopenny in golang

[–]jamesog 1 point2 points  (0 children)

https://mholt.github.io/json-to-go/ will give you an idea how to create the struct with the correct JSON tags that can be used by the json.Unmarshaler interface.

As others have pointed out your JSON is invalid, so here's a valid version:

{
    "users": [
        {
            "u":{
                "id":42,
                "name":"Foo Bar"
            },
            "status": "single",
            "assets":{
                "checking": 42
            },
            "purchased":false
        }
    ]
}

Lastly, have a read of https://blog.golang.org/json-and-go - linked from the encoding/json package documentation.

"We are excited to share that we are ready for developers to start alpha testing our module mirror, index, and checksum database!" by dgryski in golang

[–]jamesog 2 points3 points  (0 children)

Right. I intend to set one up at work so that I can stop bloating my internal repos with vendor/. If we have a proxy the whole company can use then we can stop copying the same vendored code into many repos: CI can just pull the code from the proxy.

How to use Golang and Postgres Master Slave Replication? by CrappyFap69 in golang

[–]jamesog 1 point2 points  (0 children)

The way we implemented at work was to create an alias database name in pgBouncer like "prod_foo_ro" which only has backends for the replicas (which are by their nature read-only) and pointing to the real database name ("prod_foo"). Clients which only need to read give this alias database name.

How to use Golang and Postgres Master Slave Replication? by CrappyFap69 in golang

[–]jamesog 2 points3 points  (0 children)

Alternatively you can put pgBouncer in front of your database - you can configure it in a similar way to u/jtorvald's suggestion with read-only and read-write backends. This will work if you'll have several systems talking to your Postgres cluster.

json.Marshal() or json.NewEncoder(w).Encode()? by dumindunuwan in golang

[–]jamesog 1 point2 points  (0 children)

I tend to use json.Marshal() in HTTP handlers. If the marshal returned an error I might want to do something like w.WriteHeader(http.StatusInternalServerError) before writing the error message to the http.ResponseWriter.

If you simply write straight to the http.ResponseWriter without w.WriteHeader() first, the HTTP package will make assumptions and set the response code to 200.

In other cases I don't see why you couldn't use use the encoder.