LinnJS
LinnJS
Explore posts from servers
TTCTheo's Typesafe Cult
Created by nickparks on 7/15/2024 in #questions
T3 Turbo Auth Proxy - Correct Setup Help
@artifactualz are you having the same issues or something different I have been setting up t3-turbo but not currently using expo. Would be willing to take a look if you are having issues.
4 replies
TTCTheo's Typesafe Cult
Created by videoloss on 12/12/2024 in #questions
need help deciding mobile stack
Both of the above support Tailwind, TypeScript, and tRPC but React Native has different packages for Tailwind like native wind and such. You can also create a NextJS dashbaord app and expose APIs to use on your mobile app. Create-t3-turbo has this all setup if you want to take a look.
3 replies
TTCTheo's Typesafe Cult
Created by videoloss on 12/12/2024 in #questions
need help deciding mobile stack
Depending on your needs to interact with native hardware APIs I would suggest Capacitor for a more PWA need with native APIs but I dont think you have the ability to create native bridge modules with it. Have never used it but have many friends who love it. This BUNKR app uses capacitor for mobile app. You could also use React Native its going to have more of a learning curve and a slightly more tricky deployment but you can write native code bridges (custom native code) and then call it in JavaScript land which is nice if you need that Expo also makes it pretty easy to manage with a lot of native APIs built for you with Expo.
3 replies
TTCTheo's Typesafe Cult
Created by LinnJS on 12/9/2024 in #questions
Self hosted Postgres on Create t3 Turbo
I opened a Github issue on create-t3-turbo for this issue.
8 replies
TTCTheo's Typesafe Cult
Created by LinnJS on 12/9/2024 in #questions
Self hosted Postgres on Create t3 Turbo
8 replies
TTCTheo's Typesafe Cult
Created by LinnJS on 12/9/2024 in #questions
Self hosted Postgres on Create t3 Turbo
I got TypeScript happy with the new driver but now when I start up the nextjs app and load the page I get the following error.
8 replies
TTCTheo's Typesafe Cult
Created by LinnJS on 12/9/2024 in #questions
Self hosted Postgres on Create t3 Turbo
I tried using the webpack in next config workaround but does not seem to be working.
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
fs: false,
path: false,
stream: false,
};
}
return config;
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
fs: false,
path: false,
stream: false,
};
}
return config;
},
8 replies
TTCTheo's Typesafe Cult
Created by LinnJS on 12/9/2024 in #questions
Self hosted Postgres on Create t3 Turbo
8 replies
TTCTheo's Typesafe Cult
Created by LinnJS on 12/9/2024 in #questions
Self hosted Postgres on Create t3 Turbo
Stuck at this point now with errors coming from auth looks like backend stuff is getting bundled on the client
8 replies
TTCTheo's Typesafe Cult
Created by LinnJS on 12/9/2024 in #questions
Self hosted Postgres on Create t3 Turbo
I think I figured out after walking away and sleeping on it . The issue was not having pg and @types/pg in the api when I had then in the db package. With this client and adding those packages to db and api ts errors went away. Here is my client
import { drizzle } from "drizzle-orm/node-postgres";
import { Pool } from "pg";
import * as schema from "./schema";

const pool = new Pool({
connectionString: process.env.POSTGRES_URL,
});

export const db = drizzle({ client: pool, schema });
import { drizzle } from "drizzle-orm/node-postgres";
import { Pool } from "pg";
import * as schema from "./schema";

const pool = new Pool({
connectionString: process.env.POSTGRES_URL,
});

export const db = drizzle({ client: pool, schema });
8 replies
SKSignal K
Created by Antony Slack on 4/22/2024 in #questions
Need some help debugging code for Ultrasonic Tank Sensor
Oh darn I was hoping it was something software related I dont have much XP with hardware programming.
6 replies
SKSignal K
Created by LinnJS on 4/21/2024 in #announcements
signalk-to-mongodb version 2.1.1
We are using it on-shore and off-shore its just a stop gap solution till I can get mongo integrated with influxdb unfortunately mongo wont run on a pi directly does not support ARM. Since we have starlink the bet is we will always have some sort of connection but I will be making a infux to mongo plugin next and will do diff logic to make sure all data is on the cloud mongodb. My primary goal was to use a db that supported prisma for app dev.
9 replies
SKSignal K
Created by LinnJS on 4/21/2024 in #announcements
signalk-to-mongodb version 2.1.1
I went through some problems where I was not storing data correctly by its type. I recently re-wrote the plugin so it stores dates correctly that was probably the biggest hoop. I was planning on making another plugin that integrates InfluxDB with MongoDB and then does a diff between the data and post it up to mongo. The main problem is when you loose connection to the internet since it grabs data form signalk you can lose some data here and there the boat I am working with has Starlink so data loss isnt that bad but still happens. The mongo plugin has connection retries so if you lose connection it will restart when you get back online. Would be nice to use Influx so there is zero data loss. My biggest compliment to mongo is its developer expirence I am building an app off of it and I am using React with Prisma as a ORM and tRPC as the backend very nice workflow. Also nice to use Prisma Studio as a data viewer. Overall its not bad at all I am storing 1.3Million records and having a pretty good experience overall. Using Railway and using MongoDB docker image it is costing us around $10/month for 1.3 million records not bad . If you have any specific questions let me know.
9 replies
SKSignal K
Created by LinnJS on 4/5/2024 in #plugins-and-webapps
LinnJS - Hello everyone I am trying to setup a ...
Everything is working and problem is solved, thanks for the help ya'll!
15 replies
SKSignal K
Created by LinnJS on 4/5/2024 in #plugins-and-webapps
LinnJS - Hello everyone I am trying to setup a ...
@Tony that seemed to be the issue when I created the token I made it via the CLI and was not aware of the UI and when I made the new token gave it global access and it worked, or at least I am not getting the error anymore. Going to go the boat on Sunday to put the new image on there configure the canboat connection.
15 replies
SKSignal K
Created by LinnJS on 4/5/2024 in #plugins-and-webapps
LinnJS - Hello everyone I am trying to setup a ...
@Tony I think you are onto something I dont think I did let me try making a new token with more scopes.
15 replies
SKSignal K
Created by LinnJS on 4/5/2024 in #plugins-and-webapps
LinnJS - Hello everyone I am trying to setup a ...
I am also using bookwork so I downgraded to 2.7.4-1 as you suggested in your post and I got the same error as above. Could it be something with a path being off somewhere?
15 replies
SKSignal K
Created by LinnJS on 4/5/2024 in #plugins-and-webapps
LinnJS - Hello everyone I am trying to setup a ...
No description
15 replies
SKSignal K
Created by LinnJS on 4/5/2024 in #plugins-and-webapps
LinnJS - Hello everyone I am trying to setup a ...
Good call @Jason_SV.Apres|Hunter336|WI I actually had it as sailfuture in the beginning I was just testing. I figured if the Org name didnt work to try the ID both have same error.
15 replies