GithubHelp home page GithubHelp logo

zadam / trilium-sender Goto Github PK

View Code? Open in Web Editor NEW
80.0 8.0 31.0 571 KB

Simple android application for sending images and notes to Trilium

License: GNU General Public License v3.0

Kotlin 100.00%

trilium-sender's Introduction

Trilium Sender

Trilium Sender is a simple Android application for sending images and notes to Trilium.

It's not a full Android port of Trilium and it's not meant to be one - instead it's supposed to cover only following use cases:

  • write plain text notes and send them to Trilium
  • send images (photos) to Trilium

Specifically, this app doesn't support reading or modifying existing notes, it's "write-only". If you need to access your notes in the mobile phone, you can use Trilium's mobile frontend.

Both notes and images are saved as new notes under "day note" in Trilium server.

trilium-sender's People

Contributors

elementc avatar estasney avatar ilikeorangutans avatar jkaplon avatar zadam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trilium-sender's Issues

Add possibility to share text

The idea is that sharing text will open note activity with prefilled content from the shared text. User can then just press "send" and activity closes.

web page wont load

When trying to open the web page at 127.0.0.1:8085 the page wont load. If I check the logs; this is shown;`

today at 3:36:47 PM DB not initialized, please visit setup page - http://[your-server-host]:8085 to see instructions on how to initialize Trilium.
today at 3:36:47 PM App HTTP server starting up at port 8085
today at 3:36:47 PM {
today at 3:36:47 PM   "appVersion": "0.45.10",
today at 3:36:47 PM   "dbVersion": 170,
today at 3:36:47 PM   "syncVersion": 16,
today at 3:36:47 PM   "buildDate": "2021-02-11T23:05:48+01:00",
today at 3:36:47 PM   "buildRevision": "5b679930de787efc2f70dfe7961cd1677ec2fa0f",
today at 3:36:47 PM   "dataDirectory": "/data",
today at 3:36:47 PM   "clipperProtocolVersion": "1.0"
today at 3:36:47 PM }
today at 3:36:47 PM CPU model: Intel(R) Core(TM)2 Duo CPU     E7500  @ 2.93GHz, logical cores: 2 freq: 2926 Mhz
today at 3:36:47 PM Listening on port 8085```

This is hte part of my docker-compose.yml file:
  trilium:
    image: zadam/trilium:0.45-latest
    restart: always
    environment:
      - TRILIUM_DATA_DIR=/data
      - TZ=${TZ} 
      - PUID=${PUID}
      - PGID=${PGID}
    ports:
      - "${TRILLIUM_PORT}::8085"
    volumes:
      - ${USERDIR}/trilium:/data

any idea why i cant connect?

text box only half used after keyboard dropd

If I tap in the note part of the add note the keyboard pops up. Then paste a bunch of text. When the keyboard hides only half the screen is used to score the posted text.

[edit] Seems if you add:

android:windowSoftInputMode="adjustResize"

to the manifest for the main activity this might resolve the issue

self-signed certificates

Can you add an option to set up of the app to ignore the error for self-signed certificate. Yes, I also asked for this in the main app, but I know you can do this for android apps as I have other apps that do this. I understand the security issue so perhaps warn the used when they select to do this.

how do you add a note

There is some hint when you open the app but I can't find a way to add a note. Suggestion to make a sharing target might be a way. I can see the option in gallery

Custom port

Would it be possible to change the port number by the user, because sometimes we need to use a different port for various reasons. Having it hardcoded in the app makes it less useful.

[feature request] ability to specify where the node is added

I'd like to be able to specify a label and have notes that are added be added under that label. For example, I'd like to have the notes added in my inbox, perhaps a folder called "to file" so I'd add a label called "androidToFile" on that note and either you could add code on the backed to file there, or perhaps clone there.

[idea] Add Tasker support

Tasker for Android is a well-known and powerful automation app. External apps can interact with Tasker as plugins, either to provide or receive data. For trilium-sender, one can imagine a lot of workflows where such automation is useful, such as automatically create notes from emails, calls, SMS, calendar events, and possibly fetch data from apps and others sources, such as weather data

Network error for logining in trilium server in trilium-sender

I can't login in trilium server in trilium-sender downloaded by google play.
It shows me the network error after I input the necessary info.

And I found logs below, I want to know if there is a script which supported the trilium-sender.

Error: Router not found for request /api/sender
    at /usr/src/app/src/app.js:71:17
    at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:323:13)
    at /usr/src/app/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:341:12)
    at next (/usr/src/app/node_modules/express/lib/router/index.js:275:10)
    at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:91:12)
    at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:323:13)
    at /usr/src/app/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:341:12) {
  status: 404
}

Unofficial release?

It would be nice if zadam makes an unofficial github release at least.

This sounds to be a very useful option.

thanks

Network error during setup of v0.3 app

Can't setup the v0.3 of the app using http://[my_ip]:[my_port] because of a network error.

It should have been fixed in v0.3 by #18, but the error still persists. Using Android 14.

Noticed on the app info screen of the v0.3 app that the version is still 0.2:
v03 shows as v02

Redacted following mentions of IP address, port number, user UID/GID and data path for security reasons.

Error from the logcat log:

2024-01-28 14:19:10.978 27668 27786 io.github.zadam.triliumsender E UserLoginCoroutine : Can't connect to Trilium server
java.net.UnknownServiceException: CLEARTEXT communication to [my_ip] not permitted by network security policy
	at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:188)
	at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
	at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
	at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
	at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
	at io.github.zadam.triliumsender.LoginActivity$doLogin$2.invokeSuspend(LoginActivity.kt:173)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

My docker compose:

version: '2.1'
services:
  trilium:
    image: zadam/trilium:0.62.6
    restart: always
    environment:
      - TRILIUM_DATA_DIR=/home/node/trilium-data
      - USER_UID=[my_UID]
      - USER_GID=[my_GID]
    ports:
      - "[my_port]:8080"
    volumes:
      - [my_path]:/home/node/trilium-data

Add note

I read the closed issues about how to add the add note shortcut, yet I still can't do it. I have pixel launcher, not sure if that matters or not.
If I long press on the screen I get wallpapers and widgets, there's nothing in widgets related to trilium. If I long press the home page or the app drawer trilium icon I get remove/uninstall options but no option to add a shortcut. I'm at a loss. Is there any workaround or am I missing a step somewhere?

F-Droid

Are you OK with publishing Trilium Sender on F-Droid, @zadam?
F-Droid is an app store containing only open-source apps that are build from source.
If yes, could you please open an issue here?
The F-Droid crew will take care of the rest. ๐Ÿ‘Œ

FYI @Rudloff & @Poussinou

No username Available

It asks for a username but I am using the docker image which doesn't require a username. Without inputting the username the app won't work as it says username is a mandatorily required field.

The expected behaviour should be that it shouldn't require the username especially since it has been dropped from trilium.

trilium sender setup - it wants a username?!

I might be missing something here but what username is trilium sender wanting in its setup?

Trilium Server never set one up, not prompts for one. Entering random text doesn't work either ๐Ÿ˜€

Can't do anything

After install from play store I only get this view:
image

I set the right settings ( I use yunohost to host trilium) and it says everything is ok, but after that nothing happens. I can only see this view. I can't move anything or to anything.
I use android 12 and sony zx1 compact.

Note isn't created as protected

i have my journal set to protected subtree and adding new notes on desktop are protected however if added via the android app then it isn't created protected

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.